.class public Lcom/estrongs/android/ui/drag/f;
.super Ljava/lang/Object;
.source "DragWindowAdapter.java"


# instance fields
.field private a:Lcom/estrongs/android/ui/drag/DragLayer;

.field private b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/android/ui/drag/DragWindowView;",
            ">;"
        }
    .end annotation
.end field

.field private c:Lcom/estrongs/android/ui/drag/a;

.field private d:Z

.field private e:Lcom/estrongs/android/pop/view/FileExplorerActivity;


# direct methods
.method public constructor <init>(Lcom/estrongs/android/pop/view/FileExplorerActivity;Lcom/estrongs/android/ui/drag/DragLayer;Lcom/estrongs/android/ui/drag/a;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p2, p0, Lcom/estrongs/android/ui/drag/f;->a:Lcom/estrongs/android/ui/drag/DragLayer;

    .line 3
    iput-object p3, p0, Lcom/estrongs/android/ui/drag/f;->c:Lcom/estrongs/android/ui/drag/a;

    .line 4
    new-instance p2, Ljava/util/ArrayList;

    invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V

    iput-object p2, p0, Lcom/estrongs/android/ui/drag/f;->b:Ljava/util/List;

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/ui/drag/f;->e:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 6
    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object p1

    iget p1, p1, Landroid/content/res/Configuration;->orientation:I

    const/4 p2, 0x1

    if-ne p1, p2, :cond_0

    goto :goto_0

    :cond_0
    const/4 p2, 0x0

    :goto_0
    iput-boolean p2, p0, Lcom/estrongs/android/ui/drag/f;->d:Z

    .line 7
    :try_start_0
    invoke-direct {p0}, Lcom/estrongs/android/ui/drag/f;->c()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    .line 8
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_1
    return-void
.end method

.method private a(Lcom/estrongs/android/ui/drag/DragWindowView;I)V
    .locals 1

    if-nez p1, :cond_0

    return-void

    .line 1
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/drag/f;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 2
    invoke-virtual {p1, p2}, Lcom/estrongs/android/ui/drag/DragWindowView;->setPosition(I)V

    return-void
.end method

.method private c()V
    .locals 11

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/drag/f;->d:Z

    const v1, 0x7f0904bc

    const v2, 0x7f0904bb

    const v3, 0x7f0904ba

    const v4, 0x7f0909cc

    const v5, 0x7f0909cb

    const/4 v6, 0x2

    const/4 v7, 0x1

    const/4 v8, 0x0

    if-eqz v0, :cond_0

    const/4 v0, 0x4

    new-array v9, v0, [Landroid/widget/LinearLayout;

    .line 2
    iget-object v10, p0, Lcom/estrongs/android/ui/drag/f;->a:Lcom/estrongs/android/ui/drag/DragLayer;

    invoke-virtual {v10, v5}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    aput-object v5, v9, v8

    .line 3
    iget-object v5, p0, Lcom/estrongs/android/ui/drag/f;->a:Lcom/estrongs/android/ui/drag/DragLayer;

    invoke-virtual {v5, v4}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    aput-object v4, v9, v7

    .line 4
    iget-object v4, p0, Lcom/estrongs/android/ui/drag/f;->a:Lcom/estrongs/android/ui/drag/DragLayer;

    const v5, 0x7f0909cd

    invoke-virtual {v4, v5}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    aput-object v4, v9, v6

    .line 5
    iget-object v4, p0, Lcom/estrongs/android/ui/drag/f;->a:Lcom/estrongs/android/ui/drag/DragLayer;

    const v5, 0x7f0909ce

    invoke-virtual {v4, v5}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    const/4 v5, 0x3

    aput-object v4, v9, v5

    :goto_0
    if-ge v8, v0, :cond_1

    .line 6
    aget-object v4, v9, v8

    invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/ui/drag/DragWindowView;

    mul-int/lit8 v5, v8, 0x3

    add-int/lit8 v7, v5, 0x0

    .line 7
    invoke-direct {p0, v4, v7}, Lcom/estrongs/android/ui/drag/f;->a(Lcom/estrongs/android/ui/drag/DragWindowView;I)V

    .line 8
    aget-object v4, v9, v8

    invoke-virtual {v4, v2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/ui/drag/DragWindowView;

    add-int/lit8 v7, v5, 0x1

    .line 9
    invoke-direct {p0, v4, v7}, Lcom/estrongs/android/ui/drag/f;->a(Lcom/estrongs/android/ui/drag/DragWindowView;I)V

    .line 10
    aget-object v4, v9, v8

    invoke-virtual {v4, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/ui/drag/DragWindowView;

    add-int/2addr v5, v6

    .line 11
    invoke-direct {p0, v4, v5}, Lcom/estrongs/android/ui/drag/f;->a(Lcom/estrongs/android/ui/drag/DragWindowView;I)V

    add-int/lit8 v8, v8, 0x1

    goto :goto_0

    :cond_0
    new-array v0, v6, [Landroid/widget/LinearLayout;

    .line 12
    iget-object v9, p0, Lcom/estrongs/android/ui/drag/f;->a:Lcom/estrongs/android/ui/drag/DragLayer;

    invoke-virtual {v9, v5}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    aput-object v5, v0, v8

    .line 13
    iget-object v5, p0, Lcom/estrongs/android/ui/drag/f;->a:Lcom/estrongs/android/ui/drag/DragLayer;

    invoke-virtual {v5, v4}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    aput-object v4, v0, v7

    :goto_1
    if-ge v8, v6, :cond_1

    .line 14
    aget-object v4, v0, v8

    invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/ui/drag/DragWindowView;

    mul-int/lit8 v5, v8, 0x6

    add-int/lit8 v7, v5, 0x0

    .line 15
    invoke-direct {p0, v4, v7}, Lcom/estrongs/android/ui/drag/f;->a(Lcom/estrongs/android/ui/drag/DragWindowView;I)V

    .line 16
    aget-object v4, v0, v8

    invoke-virtual {v4, v2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/ui/drag/DragWindowView;

    add-int/lit8 v7, v5, 0x1

    .line 17
    invoke-direct {p0, v4, v7}, Lcom/estrongs/android/ui/drag/f;->a(Lcom/estrongs/android/ui/drag/DragWindowView;I)V

    .line 18
    aget-object v4, v0, v8

    invoke-virtual {v4, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/ui/drag/DragWindowView;

    add-int/lit8 v7, v5, 0x2

    .line 19
    invoke-direct {p0, v4, v7}, Lcom/estrongs/android/ui/drag/f;->a(Lcom/estrongs/android/ui/drag/DragWindowView;I)V

    .line 20
    aget-object v4, v0, v8

    const v7, 0x7f0904bd

    invoke-virtual {v4, v7}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/ui/drag/DragWindowView;

    add-int/lit8 v7, v5, 0x3

    .line 21
    invoke-direct {p0, v4, v7}, Lcom/estrongs/android/ui/drag/f;->a(Lcom/estrongs/android/ui/drag/DragWindowView;I)V

    .line 22
    aget-object v4, v0, v8

    const v7, 0x7f0904be

    invoke-virtual {v4, v7}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/ui/drag/DragWindowView;

    add-int/lit8 v7, v5, 0x4

    .line 23
    invoke-direct {p0, v4, v7}, Lcom/estrongs/android/ui/drag/f;->a(Lcom/estrongs/android/ui/drag/DragWindowView;I)V

    .line 24
    aget-object v4, v0, v8

    const v7, 0x7f0904bf

    invoke-virtual {v4, v7}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/ui/drag/DragWindowView;

    add-int/lit8 v5, v5, 0x5

    .line 25
    invoke-direct {p0, v4, v5}, Lcom/estrongs/android/ui/drag/f;->a(Lcom/estrongs/android/ui/drag/DragWindowView;I)V

    add-int/lit8 v8, v8, 0x1

    goto :goto_1

    .line 26
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/drag/f;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_2
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/ui/drag/DragWindowView;

    .line 27
    iget-object v2, p0, Lcom/estrongs/android/ui/drag/f;->e:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/drag/DragWindowView;->setActivity(Lcom/estrongs/android/pop/view/FileExplorerActivity;)V

    goto :goto_2

    :cond_2
    return-void
.end method


# virtual methods
.method public a()Les/hy;
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/drag/f;->e:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->g0()Les/hy;

    move-result-object v0

    return-object v0
.end method

.method public b()V
    .locals 5

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/ui/drag/f;->a()Les/hy;

    move-result-object v0

    invoke-virtual {v0}, Les/hy;->d()I

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v0, :cond_0

    .line 2
    iget-object v3, p0, Lcom/estrongs/android/ui/drag/f;->b:Ljava/util/List;

    invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/android/ui/drag/DragWindowView;

    .line 3
    invoke-virtual {v3, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 4
    invoke-virtual {v3}, Lcom/estrongs/android/ui/drag/DragWindowView;->a()V

    .line 5
    iget-object v4, p0, Lcom/estrongs/android/ui/drag/f;->c:Lcom/estrongs/android/ui/drag/a;

    invoke-virtual {v4, v3}, Lcom/estrongs/android/ui/drag/a;->b(Lcom/estrongs/android/ui/drag/g;)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 6
    :cond_0
    :goto_1
    iget-object v1, p0, Lcom/estrongs/android/ui/drag/f;->b:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_1

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/ui/drag/f;->b:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/ui/drag/DragWindowView;

    const/4 v2, 0x4

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_1
    return-void
.end method
